package com.wuxin.ssm.service.impl;

import com.wuxin.ssm.entity.Items;
import com.wuxin.ssm.mapper.ItemsMapper;
import com.wuxin.ssm.service.ItemsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: untitled
 * @ClassName ItemsServiceImpl
 * @description:
 * @author: 刘庆东
 * @create: 2024−11-29 14:09
 * @Version 1.0
 **/
@Service
public class ItemsServiceImpl  implements ItemsService {

    @Autowired
    private ItemsMapper itemsMapper;

    @Override
    public List<Items> findAll() {
        //List<Items> itemsList = itemsMapper.selectByExample(null);
        List<Items> itemsList = itemsMapper.findAll();
        return itemsList;
    }

    @Override
    public void delItemsById(Integer ids) {
        itemsMapper.deleteById(ids);
    }
}
